$(document).ready(function(){
  $('.dis_other input').click(function(){

      if($('#other').is(":checked")){
        $(this).parent().siblings('span').children('input').removeAttr('disabled','disabled');
        $(this).parent().siblings('span').children('input').css('background','url(/medical-cloud/assets/dean/img/disable_input.png)');
      }else{
        $(this).parent().siblings('span').children('input').attr('disabled','disabled');
        $(this).parent().siblings('span').children('input').css('background','url(/medical-cloud/assets/dean/img/disable_input1.png)');
      }
  });

  $('.disable_degree .select span').click(function(){

      $(this).siblings('ul').slideToggle(10);
  });
  $('.select ul li').mouseenter(function(){

    $(this).css({"backgroundColor":"#509738","color":"#fff"});
  }).mouseleave(function(){

    $(this).css({"backgroundColor":"#fff","color":"#737272"});
  });

    $('.disable_degree').on('click','.select ul li',function(){

      var val = $(this).attr('data-option-value');
      var oTxt = $(this).text();
      $(this).parent('ul').siblings('.text').attr('data-value',val);
      $(this).parent('ul').siblings('.text').text(oTxt);
      $(this).parent('ul').css('display','none');
  });

  $('.store button').click(function(){

    $(this).css({"background":"url(img/store1_bg.png)","color":"#fff"});
  });
}); 
$(document).ready(function(){
	
	if( !('placeholder' in document.createElement('input')) ){   

    $('input[placeholder],textarea[placeholder]').each(function(){    
      var that = $(this);   
      text= that.attr('placeholder');    
      if(that.val()===""){    
        that.val(text).addClass('placeholder');    
      }    
      that.focus(function(){    
        if(that.val()===text){    
          that.val("").removeClass('placeholder');    
        }    
      })    
      .blur(function(){    
        if(that.val()===""){    
          that.val(text).addClass('placeholder');    
        }    
      })    
      .closest('form').submit(function(){    
        if(that.val() === text){    
          that.val('');    
        }    
      });    
    });    
  } 
})